<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('AdminPriceRange/index')}">价格区间管理</a></li>
        <li><a href="{:url('AdminPriceRange/add')}">添加价格区间</a></li>
    </ul>
    <form method="post" class="js-ajax-form margin-top-20">
        <div class="table-actions">
            <!--<button type="submit" class="btn btn-primary btn-sm js-ajax-submit">{:lang('SORT')}</button>-->
        </div>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>价格区间</th>
                <th width="160">操作</th>
            </tr>
            </thead>
            <tbody>
             <empty name="prices">
                <td colspan="4" class="text-center"> aOh! 暂时还没有添加价格区间! </td>
            </empty>
            <foreach name="prices" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.min_price|default='0'}万<notempty name="vo.max_price">-{$vo.max_price}万<else/>以上</notempty></td>
                    <td>
                        <a href="{:url('AdminPriceRange/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                        <a class="js-ajax-delete" href="{:url('AdminPriceRange/delete',['id'=>$vo['id']])}">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="table-actions">
            <!--<button type="submit" class="btn btn-primary btn-sm js-ajax-submit">{:lang('SORT')}</button>-->
        </div>
    </form>
    <ul class="pagination">{$page|default=''}</ul>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>